import themeDetails from '@/api/themeDetails';
import type{ RouteRecordRaw } from 'vue-router';
// @ts-ignore
// @ts-ignore
/**
 * 静态路由(默认)
 *
 */
export const staticRoutes: Array<RouteRecordRaw> = [
  // 首页 资源
  {
    path: '/',
    component: ()=>import('@/views/resources/index.vue'),
   /* children: [
      {
        path:'recomend',
        component: () => import ('@/views/resources/components/recomend/index.vue'),
        meta: {
          title:'推荐'
        },

      },
      {
        path:'course',
        component: () => import ('@/views/resources/components/course/index.vue'),
        meta: {
          title:'教程'
        }
      },
      {
        path:'original',
        component: () => import ('@/views/resources/components/original/index.vue'),
        meta: {
          title:'作品'
        }
      },
      {
        path:'specialTopic',
        component: () => import ('@/views/resources/components/specialTopic/index.vue'),
        meta: {
          title:'专题'
        }
      },
      {
        path:'attention',
        component: () => import ('@/views/resources/components/attention/index.vue'),
        meta: {
          title:'关注'
        }
      },
      {
        path:'information',
        component: () => import ('@/views/resources/components/information/index.vue'),
        meta: {
          title:'动态'
        }
      },

    ]*/
  },
  {
    path: '/themeDetails',
    component: ()=>import('@/views/themeDetails/index.vue'),
  },
  {
    path: '/details',
    component: ()=>import('@/views/resources/Details/index.vue')
  },
  // 课程
  {
    path: '/course',
    component: ()=>import('@/views/course/index.vue'),
    children:[{
      path:'theme',
      component: ()=>import('@/views/course/theme/index.vue'),
      meta:{
        title:'主题详情'
      }
    }]
  },
  // 练习室
  {
    path: '/practice',
    component: ()=>import('@/views/practice/mypractice/index.vue'),
  },
  {
    path: '/mypractice',
    component: () => import('@/views/practice/mypractice/index.vue'),
  },
  {
    path: '/cache',
    component: () => import('@/views/practice/cache/index.vue'),
  },
  {
    path: '/collection',
    component: () => import('@/views/practice/collection/index.vue'),
  },
  {
    path: '/history',
    component: () => import('@/views/practice/history/index.vue'),
  },
  // 交流
  {
    path: '/communication',
    component: ()=>import('@/views/communication/index.vue'),
  },
  {
    path: '/me',
    component: ()=>import('@/views/me/index.vue'),
  },
  {
    path: '/login',
    component: ()=>import('@/views/login/index.vue'),
  },
  {
    path: '/member',
    component: ()=>import('@/views/member/index.vue'),
  },
  {
    path: '/material',
    component: ()=>import('@/views/material/index.vue'),
  },

  {
    path: '/recomend',
    component: ()=>import('@/views/resources/index.vue'),
    children: [
        {
          path:'recomend',
          component: () => import ('@/views/resources/components/recomend/index.vue'),
          meta: {
            title:'推荐'
          },

        },
      {
        path:'/course',
        component: () => import ('@/views/resources/components/course/index.vue'),
        meta: {
          title:'教程'
        }
      },
      {
        path:'original',
        component: () => import ('@/views/resources/components/original/index.vue'),
        meta: {
          title:'作品'
        }
      },
      {
        path:'specialTopic',
        component: () => import ('@/views/resources/components/specialTopic/index.vue'),
        meta: {
          title:'专题'
        }
      },
      {
        path:'attention',
        component: () => import ('@/views/resources/components/attention/index.vue'),
        meta: {
          title:'关注'
        }
      },
      {
        path:'information',
        component: () => import ('@/views/resources/components/information/index.vue'),
        meta: {
          title:'动态'
        }
      },

    ]
  },
]

